program class_const;
    class A;
        // constant value
        const integer GSIZE = 64; 
        const integer LSIZE;
        string name;

        // Constructor
        function new (string name);
            begin
                this.name = name;
                this.LSIZE = 100; // only one assignment in new
            end
        endfunction

        // This is not allowed
        task modify();
            //this.LSIZE ++; // This is wrong
            //this.GSIZE ++; // This is wrong
        endtask

        task print ();
            $write("%s -> Size is %0d\n",this.name, this.LSIZE);
            $write("%s -> Size is %0d\n",this.name, this.GSIZE);
        endtask
        
    endclass

    A a;

    initial begin
        a = new("A");
        a.print();
    end

endprogram

